package com.aerotechnic.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aerotechnic.dao.implementation.MacroTacheDao;
import com.aerotechnic.entities.MacroTache;
import com.aerotechnic.service.interfaces.MacroTacheBoIn;

@Service("MacroTacheBo")
@Transactional
public class MacroTacheBo implements MacroTacheBoIn {
	
	@Autowired
	private MacroTacheDao macrotacheDao;

	@Override
	public void save(MacroTache myEntity) {
		// TODO Auto-generated method stub
		macrotacheDao.save(myEntity);
		
	}

	@Override
	public void update(MacroTache myEntity) {
		// TODO Auto-generated method stub
		macrotacheDao.update(myEntity);
		
	}

	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		macrotacheDao.delete(id);
	}

	@Override
	public MacroTache findByID(Long id) {
		// TODO Auto-generated method stub
		return macrotacheDao.findByID(id);
	}

	@Override
	public List<MacroTache> findAll() {
		// TODO Auto-generated method stub
		return macrotacheDao.findAll();    
	}

	@Override
	public List<MacroTache> getMacoTachesByIds(String[] ids) {
		// TODO Auto-generated method stub
		return macrotacheDao.getMacoTachesByIds(ids);
	}

}
